home *** CD-ROM | disk | FTP | other *** search
- on Menu_____________________________
- end
-
- on InitMenu
- global gSyncPermitted
- installMenu(member "MyMenuList")
- if the frameLabel = "Lista" then
- SetMenuLista()
- else
- SetMenuCredits()
- end if
- end
-
- on SetMenuLista
- global gSyncPermitted
- set the enabled of menuItem 1 of menu 1 to 1
- SetMenuFile(1)
- ableMenu("Options", 1)
- end
-
- on SetMenuCredits
- set the enabled of menuItem 1 of menu 1 to 0
- SetMenuFile(0)
- ableMenu("Options", 0)
- end
-
- on SetMenuFile vSetting
- global gSyncPermitted
- set the enabled of menuItem 1 of menu "File" to vSetting
- set the enabled of menuItem 2 of menu "File" to vSetting
- set the enabled of menuItem 3 of menu "File" to gSyncPermitted and (the frameLabel = "Lista")
- set the name of menuItem 3 of menu "File" to MyOperationBtn()
- end
-
- on ableMenu theMenu, vSetting
- set n to the number of menuItems of menu theMenu
- repeat with i = 1 to n
- set the enabled of menuItem i of menu theMenu to vSetting
- end repeat
- end
-
- on SetMenuWindows
- installMenu(member "MyMenuWindow")
- end
-